package org.openclinic.repository;

import java.util.List;

import org.openclinic.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserRepository extends JpaRepository<User, Long> {

	@Query("FROM User WHERE day(birthdate) = ?1 AND month(birthdate) = ?2")
	List<User> findCelebratingBirthday(int day, int month);
	
}
